import { createApp } from 'vue'
import '@/assets/css/main.scss'
import App from './App.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'vue-cropper/dist/index.css'
//导入路由
import router  from './router'
//导入vuex
import store from './store'
const app=createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

//注册路由
app.use(router)
/*
    组件库 ElementPlus
    组件库样式
*/ 
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//注册vuex
app.use(store)

//注册 ElementPlus
app.use(ElementPlus)

app.mount('#app')